<?php
class MantaAboutPage extends MantaPage {
	var $name = "About";

	public function create_frame() {
		$n = new GtkNotebook();
		$n->append_page($this->__splash_tab(),  new GtkLabel("Splash"));
		$n->append_page($this->__about_tab(),   new GtkLabel("About"));
		$n->append_page($this->__credits_tab(), new GtkLabel("Credits"));
		$n->append_page($this->__license_tab(), new GtkLabel("License"));
		return $n;
	}

	protected function __splash_tab() {
		return GtkImage::new_from_file(p("graphics/manta-splash.png"));
	}

	protected function __about_tab() {
		return new MuiTextView(file_get_contents(p("README.txt")));
	}

	protected function __credits_tab() {
		return new MuiTextView(file_get_contents(p("CREDITS.txt")));
	}

	protected function __license_tab() {
		return new MuiTextView(file_get_contents(p("LICENSE.txt")));
	}
}
